package com.huawei.mpchartlib.charts;

import com.huawei.mpchartlib.data.BubbleData;
import com.huawei.mpchartlib.interfaces.dataprovider.BubbleDataProvider;
import com.huawei.mpchartlib.renderer.BubbleChartRenderer;
import ohos.agp.components.AttrSet;
import ohos.app.Context;

public class BubbleChart extends BarLineChartBase<BubbleData> implements BubbleDataProvider {

    public BubbleChart(Context context) {
        super(context);
    }

    public BubbleChart(Context context, AttrSet attrs) {
        super(context, attrs);
    }

    public BubbleChart(Context context, AttrSet attrs, String defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    protected void init() {
        super.init();

        mRenderer = new BubbleChartRenderer(this, mAnimator, mViewPortHandler);
    }

    public BubbleData getBubbleData() {
        return mData;
    }
}
